//
//  CXDatePicker.h
//  各种自定义小功能
//
//  Created by 蔡翔 on 16/8/2.
//  Copyright © 2016年 蔡翔. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^DataTimeSelect)(NSDate *selectDataTime,NSString *selectString);

@interface CXDatePicker : UIView

@property (nonatomic, strong) NSDate *selectDate;
/** 是否可选择当前时间之前的时间, 默认为NO */
@property (nonatomic, assign) BOOL isBeforeTime;
/** DatePickerMode, 默认是DateAndTime */
@property (nonatomic, assign) UIDatePickerMode datePickerMode;

- (void)didFinishSelectedDate:(DataTimeSelect)selectDataTime;

- (void)show;

@property (nonatomic, strong) NSDate *maxSelectDate;
/** 优先级低于isBeforeTime */
@property (nonatomic, strong) NSDate *minSelectDate;

- (instancetype)initWithTopTitle:(NSString *)title;

@end
